package com.hiwan.unions.view.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.widget.AdapterView;
import android.widget.GridView;
import android.widget.TextView;

import com.hiwan.unions.R;
import com.hiwan.unions.adapter.fragmentAdapters.FragmentAdapter_gridview;
import com.hiwan.unions.util.PerfectClickListener;
import com.hiwan.unions.util.Utils;

/**
 * Created by llg on 2017/7/8.
 */
public class QiandaoDialog extends Dialog {
    private TextView text_number;

    public QiandaoDialog(final Context context) {
        super(context, R.style.searchDialog2);
        setContentView(R.layout.dialog_qiandao);
        text_number = (TextView) findViewById(R.id.text_number);
        this.setCanceledOnTouchOutside(false);
        findViewById(R.id.confirmButton).setOnClickListener(new PerfectClickListener() {
            @Override
            protected void onNoDoubleClick(View v) {
                dismiss();
            }
        });
    }

    public void show(String string) {
        text_number.setText(string + "个积分");
        show();
    }
}